// 允许敌人confused（只能攻击）（暴怒状态的）

BattleManager.isBattlerATBCharged = function(battler) {
    if (!battler.isATBCharging()) return false;
    if (battler.atbChargeRate() < 1) return false;
    if (battler.isConfused()) {
      //battler.makeActions();
      //if (battler.isActor()) battler.makeConfusionActions();
      battler.makeConfusionActions();
    }
    return battler.currentAction() && battler.currentAction().item();
};

Game_Enemy.prototype.makeConfusionActions = function() {
    for (var i = 0; i < this.numActions(); i++) {
        this.action(i).setConfusion();
    }
    this.setActionState('waiting');
};